package com.example.demo.service;

import com.example.demo.common.base.BaseResponse;
import com.example.demo.model.base.SysUserToken;
import com.example.demo.model.req.SysUserLoginReq;
import com.example.demo.model.req.SysUserRegisterReq;
import com.example.demo.pojo.MpSysUserDO;
import com.example.demo.utils.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IUserService {
    /**
     * 登录接口
     * @param sysUserLoginReq
     * @param request
     * @param response
     * @return
     */
    SysUserToken login(SysUserLoginReq sysUserLoginReq, HttpServletRequest request, HttpServletResponse response);

    MpSysUserDO getByUserName(String sysUserName);

    RespBean register(SysUserRegisterReq sysUserRegisterReq , HttpServletRequest request, HttpServletResponse response);

    RespBean showUser();
}
